how to perform crud operations on postgresql using python